package com.hitangjun.rel;

import static com.hitangjun.rel.MessagePotting.*;
import static com.hitangjun.utils.RxConvertHelper.byteArrayToInt2;

/**
 * @create 2021-02-02 19:28
 *
 * 设备控制类
 **/
public class ControlEquipment {
    public static final byte COMMAND_REGISTER=1;                    //注册
    public static final byte COMMAND_LOGIN=3;                      //登录
    public static final byte COMMAND_CHANGE_ENCRYPTED_WORD=4;      //更改加密字
    public static final byte COMMAND_EMPOWER_COUNT=5;              //授权次数
    public static final byte COMMAND_LOD_PROGRAM=6;                //载入程序
    public static final byte COMMAND_LOD_CONFIG=7;                //载入配置
    public static final byte COMMAND_LOD_PROGRAM_INFORMATION=8;     //载入程序信息
    public static final byte COMMAND_CONTINUE_LOAD=9;              //续传
    public static final byte COMMAND_CONTINUE_LOAD_END=10;          //续传结束
    public static final byte COMMAND_READ_CONFIG=64;               //读取配置
    public static final byte COMMAND_READ_INFORMATION=65;           //读取信息
    public static final byte COMMAND_WRITE_CONFIG=66;              //写入配置
    public static final byte COMMAND_HEARTBEAT=67;                  //心跳
    public static final byte COMMAND_REQUEST_LOGIN=68;              //请求登录
    public static final byte COMMAND_READY_TO_START=69;             //准备开始操作
    public static final byte COMMAND_RESET_ENCRYPTED_WORD=70;       //重置加密字


    /**
     * 设备接收PC发来的报文并解析
     * @param requestMessageBytes 请求报文
     */
    public static void equAnalysisPcRequest(byte[] requestMessageBytes){

    }



}
